var app = angular.module('app', ['ui.router']);

////////////////////////////////////////////////////////////////
var loginPage = {//手机登录页面
    stateName: 'login',
    url: "/login",
    templateUrl: "pages/login.html"
};

var one={//测试页面
    stateName: 'one',
    url: "/one",
    templateUrl: "pages/one.html"
};
var two={//测试页面
    stateName: 'two',
    url: "/two",
    templateUrl: "pages/two.html"
};

var three={//测试页面
    stateName: 'three',
    url: "/three",
    templateUrl: "pages/three.html"
};
var four={//测试页面
    stateName: 'four',
    url: "/four",
    templateUrl: "pages/four.html"
};
var five={//测试页面
    stateName: 'five',
    params:{},
    url: "/five",
    templateUrl: "pages/five.html"
};
var six={//测试页面
    stateName: 'six',
    params:{},
    url: "/six",
    templateUrl: "pages/six.html"
};
var seven={//测试页面
    stateName: 'seven',
    params:{},
    url: "/seven",
    templateUrl: "pages/seven.html"
};

var eight={//测试页面
    stateName: 'eight',
    params:{},
    url: "/eight",
    templateUrl: "pages/eight.html"
};
var ten={//测试页面
    stateName: 'ten',
    url: "/ten",
    templateUrl: "pages/ten.html"
};

var fourteen={//测试页面
    stateName: 'fourteen',
    url: "/fourteen",
    templateUrl: "pages/fourteen.html"
};
var sixteen={//测试页面
    stateName: 'sixteen',
    params:{},
    url: "/sixteen",
    templateUrl: "pages/sixteen.html"
};
//////////////////////////////////
var az2={//测试页面
    stateName: 'az2',
    params:{},
    url: "/az2",
    templateUrl: "pages/az2.html"
};
var az13={//测试页面
    stateName: 'az13',
    params:{},
    url: "/az13",
    templateUrl: "pages/az13.html"
};
var pv1_0={//测试页面
    stateName: 'pv1_0',
    url: "/pv1_0",
    templateUrl: "pages/pv1_0.html"
}
var pv2_1={//测试页面
    stateName: 'pv2_1',
    url: "/pv2_1",
    templateUrl: "pages/pv2_1.html"
}
var pv3_0={//测试页面
    stateName: 'pv3_0',
    params:{},
    url: "/pv3_0",
    templateUrl: "pages/pv3_0.html"
}
var pv5={//测试页面
    stateName: 'pv5',
    url: "/pv5",
    templateUrl: "pages/pv5.html"
}
var pv6={//测试页面
    stateName: 'pv6',
    params:{},
    url: "/pv6",
    templateUrl: "pages/pv6.html"
}
var pv7={//测试页面
    stateName: 'pv7',
    params:{},
    url: "/pv7",
    templateUrl: "pages/pv7.html"
}
var pv9={//测试页面
    stateName: 'pv9',
    params:{},
    url: "/pv9",
    templateUrl: "pages/pv9.html"
}
var pv10={//测试页面
    stateName: 'pv10',
    url: "/pv10",
    templateUrl: "pages/pv10.html"
}
var pv11={//测试页面
    stateName: 'pv11',
    params:{},
    url: "/pv11",
    templateUrl: "pages/pv11.html"
}
var pv12={//测试页面
    stateName: 'pv12',
    url: "/pv12",
    templateUrl: "pages/pv12.html"
}
var pv13={//测试页面
    stateName: 'pv13',
    url: "/pv13",
    templateUrl: "pages/pv13.html"
}
var seventeen={
    stateName: 'seventeen',
    url: "/seventeen",
    templateUrl: "pages/seventeen.html"
}
var countersign={
    stateName: 'countersign',
    params:{},
    url: "/countersign",
    templateUrl: "pages/countersign.html"
}
var confirmsign={
    stateName: 'confirmsign',
    params:{},
    url: "/confirmsign",
    templateUrl: "pages/confrimsign.html"
}
var pvcountersign={
    stateName: 'pvcountersign',
    params:{},
    url: "/pvcountersign",
    templateUrl: "pages/pvcountersign.html"
}
var pvconfirmsign={
    stateName: 'pvconfirmsign',
    url: "/pvconfirmsign",
    templateUrl: "pages/pvconfrimsign.html"
}
var mine={
    stateName: 'mine',
    params:{},
    url: "/mine",
    templateUrl: "pages/mine.html"
}
var changePassPage={
    stateName: 'changePass',
    params:{},
    url: "/changePass",
    templateUrl: "pages/modifypassword.html"
}
var choosePage={
    stateName: 'choose',
    params:{},
    url: "/choose",
    templateUrl: "pages/choose.html"
}
////////////////////////////////////////////////////////////////
app.config(['$urlRouterProvider', '$stateProvider', function ($urlRouterProvider, $stateProvider) {
    $urlRouterProvider.otherwise(loginPage.stateName,function () {
        sessionStorage.clear();
    });
    $stateProvider
        .state(loginPage.stateName, loginPage)//手机号登录
        .state(one.stateName,one)//测试页面
        .state(two.stateName,two)//测试页面
        .state(three.stateName,three)//测试页面
        .state(four.stateName,four)//测试页面
        .state(five.stateName,five)//测试页面
        .state(six.stateName,six)//测试页面
        .state(seven.stateName,seven)//测试页面
        .state(eight.stateName,eight)//测试页面
        .state(ten.stateName,ten)//测试页面
        .state(fourteen.stateName,fourteen)//测试页面
        .state(sixteen.stateName,sixteen)//测试页面
        .state(seventeen.stateName,seventeen)//测试页面

        .state(az2.stateName,az2)//测试页面
        .state(az13.stateName,az13)//测试页面
        .state(pv1_0.stateName,pv1_0)//测试页面
        .state(pv2_1.stateName,pv2_1)//测试页面
        .state(pv3_0.stateName,pv3_0)//测试页面
        .state(pv5.stateName,pv5)//测试页面
        .state(pv6.stateName,pv6)//测试页面
        .state(pv7.stateName,pv7)//测试页面
        .state(pv9.stateName,pv9)//测试页面
        .state(pv10.stateName,pv10)//测试页面
        .state(pv11.stateName,pv11)//测试页面
        .state(pv12.stateName,pv12)//测试页面
        .state(pv13.stateName,pv13)//测试页面
        .state(countersign.stateName,countersign)//测试页面
        .state(confirmsign.stateName,confirmsign)//测试页面
        .state(pvcountersign.stateName,pvcountersign)//测试页面
        .state(pvconfirmsign.stateName,pvconfirmsign)//测试页面
        .state(mine.stateName,mine)//我的页面
        .state(changePassPage.stateName,changePassPage)//我的页面--修改密码
        .state(choosePage.stateName,choosePage)//选择角色
}]);



